
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
                 com.scalar.chiptrack.commons.SessionKeys,
                 com.scalar.chiptrack.sales.forms.ApproverOrderForm,
                 com.scalar.chiptrack.commons.Constants"%>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>
<script language="javaScript">
// SharatH on July 31, 2003
function showErrorReportPage()
{
    newWindow = window.open ('<%=chipTracContext%>/reportProblem.do','reportProblem','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=750,height=400,resizable=no');
    newWindow.focus();
}
</script>
<HTML><HEAD><TITLE>ChipTrac - Sales Order Details</TITLE>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>

<!-- Top Header End-->
<% User user1 = (User) session.getAttribute (SessionKeys.USER_KEY); %>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigations start -->
<%  String heading = "";
    if((request.getAttribute("isSample") != null) && (request.getAttribute("isSample").equals("0"))) {
    heading = "Sample Order ";
    %>
	<%@ include file="/jsp/sales/sample_order_menu.jsp" %>
<% } else {
    heading = "Sales Order ";
    %>
        <%@ include file="/jsp/sales/sales_order_menu.jsp" %>
<% } %>


</TD>
<!-- end of the side navigations -->
<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<html:html>

<TABLE cellSpacing=0 cellPadding=0 width="90%" border=0 align=center>
<TR><TD bgcolor="#ffffff">

<html:form name="approverOrderForm" action="/approveOrder" method="post" type="com.scalar.chiptrack.sales.forms.ApproverOrderForm">
<nested:nest property="salesOrder">

<table border="0" width="90%" align=center bgcolor='#FFFFFF'>

    <tr><td colspan='6' align=center><font class="NArialW"><%=heading%>Details</font></td></tr>

    <tr><td colspan=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>

    <tr><td colspan=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>

     <tr>
       <td width="21%"><font class="NArialL">Sales Order No :</font></td>
       <td width="21%" class="bodytext"><b><nested:write property="salesOrderNo" /></b>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Customer Name :</font></td>
       <td width="21%" class="bodytext"><nested:write property="customerName" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">PO Rev :</font></td>
       <td width="21%"><font class="bodytext"><nested:write  property="poRev"/></font></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">PO Date:</font></td>
       <td width="21%"><font class="bodytext"><nested:write  property="poDate"/></font></td>
       <td width="3%">&nbsp;</td>

     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Customer PO No :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="customerPO"/></font></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Contact Person :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="contactPerson"/></font></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Phone No:</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="phoneNumber" /></font></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Cell No:</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="faxNumber" /></font></td>
	   <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Fax :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="faxNumber" /></font></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Email :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="email" /></font></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Sales Person :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="salesPerson" /></font></td>
       <td width="3%">&nbsp;</td>
       <td width="21%">&nbsp;</td>
       <td width="21%">&nbsp;</td>
       <td width="3%">&nbsp;</td>
     </tr>

     <tr>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.salesOrder.ShippingMethod" /> :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="shippingMethod" /></font></td>
       <td width="3%">&nbsp;</td>
       <%--<td width="21%"><font class="NArialL">Shipping Account :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="shippingAccount" /></font></td--%>
       <td width="21%"><font class="NArialL">Regional Rep : </font></td>
       <td width="21%" class="bodytext"><nested:write name="salesOrderForm" property="regionalRep" /></td>
       <td width="3%">&nbsp;</td>
     </tr>  
    <tr>
       <nested:equal value="-2" property="endCustomerId">
           <td width="21%" class="NArialL">Add New <bean:message key="label.sales.endUser"/> :</td>
           <td width="21%" class="bodytext"><nested:write property="newEndUserName"  /></td>
       </nested:equal>
       <nested:notEqual value="-2" property="endCustomerId">
           <td width="21%"><font class="NArialL"><bean:message key="label.sales.endUser"/> :</font></td>
           <td width="21%" class="bodytext"><nested:write property="endCustomer"  /></td>
       </nested:notEqual>
       <td width="3%">&nbsp;</td>
        <nested:equal value="-2" property="odmId">
            <td width="25%" class="NArialL">Add New <bean:message key="label.sales.shipToCustomer"/></td>
            <td width="21%" class="bodytext"><nested:write property="newEndCustomerName" /></td>
        </nested:equal>
        <nested:notEqual value="-2" property="odmId">
            <td width="25%"><font class="NArialL"><bean:message key="label.sales.shipToCustomer"/></font></td>
            <td width="21%" class="bodytext"><nested:write property="odm" /></td>
        </nested:notEqual>
       <td width="3%">&nbsp;</td>
     </tr>
    <tr>
       <td width="21%"><font class="NArialL">Booking Date :</font></td>
       <td width='21%' class="bodytext"><nested:write name="salesOrderForm" property="salesOrderDate"/></td>
       <td width="3%">&nbsp;</td>
       <td width="21%" colspan='3'>&nbsp;</td>
       <td width="25%">&nbsp;</td>
       <td width="3%">&nbsp;</td>
     </tr>



     <%--<tr>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.salesOrder.ShippingMethod" /> :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="shippingMethod" /></font></td>
        <td width="3%">&nbsp;</td>
       <td width="21%">&nbsp;</td>
       <td width="21%">&nbsp;</td>
       <td width="3%">&nbsp;</td>
     </tr>
      <tr>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.endUser"/> :</font></td>
       <td width="21%" class="bodytext"><nested:write  property="endUser"  /></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Regional Rep : </font></td>
       <td width="21%" class="bodytext"><nested:write property="regionalRep" />
        </td>
       <td width="3%">&nbsp;</td>
     </tr>--%>


    <tr>
       <td width="21%"><font class="NArialL">Pay Terms :</font></td>
       <td width="21%" class="bodytext">
            <nested:notEqual property="shippingTerms" value="-1" >
                <nested:write property="shippingTerms"  />
            </nested:notEqual>
       </td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Delivery Terms : </font></td>
       <td width="21%" class="bodytext"><nested:write property="deliveryTerms" />
        </td>
       <td width="3%">&nbsp;</td>
     </tr>
    <%--<tr>
       <td width="21%"><font class="NArialL">Booking Date :</font></td>
       <td width='21%' class="bodytext"><nested:write property="salesOrderDate"/>
        </td>
        <td width="3%">&nbsp;</td>
       <td width="21%" colspan='3'>&nbsp;</td>
     </tr>--%>
     <% if ( Constants.CLIENT_NAME_AIRGO.equalsIgnoreCase( ConfigManager.getClientNameAirgo() ) ) { %>
     <tr>
       <td width="21%"><font class="NArialL">Letter of Credit No :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="letterOfCreditNo" /></font></td>
       <td width="3%">&nbsp;</td>
       <%--<td width="21%"><font class="NArialL">Shipping Account :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="shippingAccount" /></font></td--%>
       <td width="21%"><font class="NArialL">L/C Issuing Bank :</font></td>
       <td width="21%" class="bodytext"><nested:write name="salesOrderForm" property="lcIssuingBank" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <% } %>
     <tr>
       <td width="21%" valign="top"><font class="NArialL">Billing Address :</font></td>
       <td width="21%" valign="top"><font class="bodytext">
       <%-- <nested:write property="billingAddress"/> --%>
       <% ApproverOrderForm approveOrderForm = (ApproverOrderForm) request.getAttribute("approverOrderForm"); %>
        <%=approveOrderForm.getSalesOrder().getBillingAddressAsHTML()%>

       </font></td>
       <td width="3%">&nbsp;</td>
       <td width="21%" valign="top"><font class="NArialL">Shipping Address :</font></td>
       <td width="21%" valign="top"><font class="bodytext">
       <%-- <nested:write property="shippingAddress" /> --%>
       <%=approveOrderForm.getSalesOrder().getShippingAddressAsHTML()%>
       </font>
       </td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr><td colsapn=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
     <tr>
       <td width="21%"><font class="NArialL">Freight Instructions :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="freightInstructions" /></font></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Shipping Instructions :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="shippingInstructions" /></font></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Comments :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="comments" /></font></td>
       <td width="3%">&nbsp;</td>
       <td width="21%">&nbsp;</td>
       <td width="21%">&nbsp;</td>
       <td width="3%">&nbsp;</td>
     </tr>
     </nested:nest>
     <tr><td colspan=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=5></td></tr>

     <logic:equal name="cancelledShow" value="TRUE">
     <tr><td colspan=6 class="NArialL">Cancelled LineItems</td></tr>
     <tr><td colspan=6>
        <table border="0" width="100%" bordercolor="#FFFFFF">
	 <tr>
	   <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Line Item</font></td>
       <td width="10%" align="center" bgcolor="#993333"  nowrap><font class="NArialL">
				<!-- Modified by veeru on (03/05/04) 
                 <font color="#FFFFFF">Mfg Part Number</font></td> -->
                <font color="#FFFFFF"><bean:message key="label.mfgPartNumber" /></font></td>
       <td width="10%" align="center" bgcolor="#993333"  nowrap><font class="NArialL">
                <font color="#FFFFFF"><bean:message key="label.customerPartNumber" /></font></td>
       <%if(Constants.CLIENT_NAME_AIRGO.equalsIgnoreCase(ConfigManager.getClientNameAirgo() )){ %>
       <td width="10%" align="center" bgcolor="#993333"  nowrap><font class="NArialL">
                <font color="#FFFFFF"><bean:message key="label.labelNumber" /></font></td>
        <%}%>
       <td width="1%" align=center bgcolor='#993333' class="NArialL">
                <font color="#FFFFFF">Taxable</td>
	   <td width="5%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Quantity</font></td>
	   <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Price </font></td>
	   <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Amount</font></td>
           <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Req'd Dock Date</font></td>
           <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Schedule Date</font></td>
           <td width="20%" align="center" bgcolor="#993333"><font class="NArialL">
            <font color="#FFFFFF">Status</font></td>

         </tr>
         <logic:iterate id="LineItem" name="cancelledLineItems">
         <tr>
	   <td width="8%" bgcolor="#DEE1E2" align=center>
                <font class="NArialL"><bean:write name="LineItem" property="lineItemNo" /></font></td>
	   <td width="10%" bgcolor="#DEE1E2"  nowrap>
                <font class="NArialL"><bean:write name="LineItem" property="manufacturingPartNo" /></font></td>
       <td width="10%" bgcolor="#DEE1E2"  nowrap>
                <font class="NArialL"><bean:write name="LineItem" property="customerPartNo" /></font></td>
        <%if(Constants.CLIENT_NAME_AIRGO.equalsIgnoreCase(ConfigManager.getClientNameAirgo() )){ %>
        <td width="10%" bgcolor="#DEE1E2"  nowrap>
                <font class="NArialL"><bean:write name="LineItem" property="labelNumber" /></font></td>
        <%}%>
       <td width="1%" bgcolor="#DEE1E2" class="NArialL" align=center>
                <bean:write name="LineItem" property="isTaxableAsString"/></td>
	   <td width="5%" bgcolor="#DEE1E2" align=right>
                <font class="NArialL"><bean:write name="LineItem" property="qtyAsString" /></font></td>
	   <td width="8%" bgcolor="#DEE1E2" align=right>
                <font class="NArialL"><bean:write name="LineItem" property="unitPriceAsString" /></font></td>
           <td width="8%" bgcolor="#DEE1E2" align=right>
                <font class="NArialL"><bean:write name="LineItem" property="amountAsString" /></font></td>
           <td width="8%" bgcolor="#DEE1E2">
                <font class="NArialL"><bean:write name="LineItem" property="requestDate" /></font></td>
           <td width="8%" bgcolor="#DEE1E2">
                <font class="NArialL"><bean:write name="LineItem" property="scheduleDate" /></font></td>
           <td width="20%" bgcolor="#DEE1E2">
                <font class="NArialL"><bean:write name="LineItem" property="status" /></font>
           </td>
         </tr>
         </logic:iterate>
        </table>
     </td>
     </tr>
     </logic:equal>
    <tr><td colspan=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=5></td></tr>
     <logic:equal name="changedShow" value="TRUE">
     <tr><td colspan=6 class="NArialL">Changed LineItems</td></tr>
     <tr><td colspan=6>
        <table border="0" width="100%" bordercolor="#FFFFFF">
	 <tr>
	   <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Line Item</font></td>
	   <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">PO Line Item</font></td>

	   <td width="10%" align="center" bgcolor="#993333"  nowrap><font class="NArialL">
	          <!-- Modified by veeru on (03/05/04)
				<font color="#FFFFFF">Mfg Number</font></td> -->
                <font color="#FFFFFF"><bean:message key="label.mfgPartNumber" /></font></td>
       <td width="10%" align="center" bgcolor="#993333"  nowrap><font class="NArialL">
                <font color="#FFFFFF"><bean:message key="label.customerPartNumber" /></font></td>
       <%if(Constants.CLIENT_NAME_AIRGO.equalsIgnoreCase(ConfigManager.getClientNameAirgo() )){ %>
       <td width="10%" align="center" bgcolor="#993333"  nowrap><font class="NArialL">
                <font color="#FFFFFF"><bean:message key="label.labelNumber" /></font></td>
        <%}%>
       <td width="1%" align=center bgcolor='#993333' class="NArialL">
                <font color="#FFFFFF">Taxable</td>
	   <td width="5%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Quantity</font></td>
	   <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Price </font></td>
	   <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Amount</font></td>
           <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Req'd Dock Date</font></td>
           <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Schedule Date</font></td>
           <td width="20%" align="center" bgcolor="#993333"><font class="NArialL">
            <font color="#FFFFFF">Status</font></td>

         </tr>
         <logic:iterate id="LineItem" name="changeLineItems">
         <tr>
	   <td width="8%" bgcolor="#DEE1E2" align=center>
                <font class="NArialL"><bean:write name="LineItem" property="lineItemNo" /></font></td>
	   <td width="8%" bgcolor="#DEE1E2" align=center>
                <font class="NArialL"><bean:write name="LineItem" property="poLineItemNo" /></font></td>
       <td width="10%" bgcolor="#DEE1E2"  nowrap>
               <font class="NArialL"><bean:write name="LineItem" property="manufacturingPartNo" /></font></td>
       <td width="10%" bgcolor="#DEE1E2"  nowrap>
                <font class="NArialL"><bean:write name="LineItem" property="customerPartNo" /></font></td>
       <%if(Constants.CLIENT_NAME_AIRGO.equalsIgnoreCase(ConfigManager.getClientNameAirgo() )){ %>
       <td width="10%" bgcolor="#DEE1E2"  nowrap>
                <font class="NArialL"><bean:write name="LineItem" property="labelNumber" /></font></td>
       <%}%>
       <td width="1%" bgcolor="#DEE1E2" class="NArialL" align=center>
                <bean:write name="LineItem" property="isTaxableAsString"/></td>
	   <td width="5%" bgcolor="#DEE1E2" align=right>
                <font class="NArialL"><bean:write name="LineItem" property="qtyAsString" /></font></td>
	   <td width="8%" bgcolor="#DEE1E2" align=right>
                <font class="NArialL"><bean:write name="LineItem" property="unitPriceAsString" /></font></td>
           <td width="8%" bgcolor="#DEE1E2" align=right>
                <font class="NArialL"><bean:write name="LineItem" property="amountAsString" /></font></td>
           <td width="8%" bgcolor="#DEE1E2">
                <font class="NArialL"><bean:write name="LineItem" property="requestDate" /></font></td>
           <td width="8%" bgcolor="#DEE1E2">
                <font class="NArialL"><bean:write name="LineItem" property="scheduleDate" /></font></td>
           <td width="20%" bgcolor="#DEE1E2">
                <font class="NArialL"><bean:write name="LineItem" property="status" /></font>
           </td>
         </tr>
         </logic:iterate>
        </table>
     </td>
     </tr>
     </logic:equal>

     <tr><td colspan=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=5></td></tr>
     <logic:equal name="presentShow" value="TRUE">

     <tr><td colspan=6>
        <table border="0" width="100%" bordercolor="#FFFFFF">
	 <tr>
	   <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Line Item</font></td>
	   <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">PO Line Item</font></td>
       <td width="10%" align="center" bgcolor="#993333" nowrap><font class="NArialL">
                <!-- Modified by veeru on (03/05/04)
				<font color="#FFFFFF">Mfg Number</font></td> -->
    		    <font color="#FFFFFF"><bean:message key="label.mfgPartNumber" /></font></td>
       <td width="10%" align="center" bgcolor="#993333" nowrap><font class="NArialL">
                <font color="#FFFFFF"><bean:message key="label.customerPartNumber" /></font></td>
       <%if(Constants.CLIENT_NAME_AIRGO.equalsIgnoreCase(ConfigManager.getClientNameAirgo() )){ %>
       <td width="10%" align="center" bgcolor="#993333"  nowrap><font class="NArialL">
                <font color="#FFFFFF"><bean:message key="label.labelNumber" /></font></td>
        <%}%>
       <td width="1%" align=center bgcolor='#993333' class="NArialL">
                <font color="#FFFFFF">Taxable</td>
	   <td width="5%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Quantity</font></td>
	   <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Price </font></td>
	   <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Amount</font></td>
           <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Req'd Dock Date</font></td>
           <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Schedule Date</font></td>
           <td width="20%" bgcolor='#993333'>
            <table with="100%" border=0>
                <tr><td colspan=4 class="NArialL" align=center><font color="#FFFFFF">Holds</td></tr>
                <font size="-3"><tR><td width="25%" align=left class="NArialL"><font color="#FFFFFF">Mktg</font></td><td  width="25%" align=center class="NArialL"><font color="#FFFFFF">Fin</font></td><td width="25%" align=right class="NArialL"><font color="#FFFFFF">Ops</FONT></td><td  align=right width="25%" class="NArialL"><font color="#FFFFFF">&nbsp;&nbsp;&nbsp;Sales</FONT></td></tr></font>
            </table>
           </td>
         </tr>

<%-- Added by Prabhanjan on 07 Mar 2004. To display Line Items with SubTotals --%>
<logic:iterate id="myHashMap" name="lineItemsWithSubtotals">
    <logic:iterate id="lineItemList" name="myHashMap" >
          <logic:iterate id="LineItem" name="lineItemList" property="key" type="com.scalar.chiptrack.sales.LineItem">
<%-- Till here Prabhanjan --%>

        <%-- <logic:iterate id="LineItem" name="lineItems"> --%>

         <tr>
	   <td width="8%" bgcolor="#DEE1E2" align=center>
                <font class="NArialL"><bean:write name="LineItem" property="lineItemNo" /></font></td>
	   <td width="8%" bgcolor="#DEE1E2" align=center>
                <font class="NArialL"><bean:write name="LineItem" property="poLineItemNo" /></font></td>
       <td width="10%" bgcolor="#DEE1E2"  nowrap>
                <font class="NArialL"><bean:write name="LineItem" property="manufacturingPartNo" /></font></td>
       <td width="10%" bgcolor="#DEE1E2"  nowrap>
                <font class="NArialL"><bean:write name="LineItem" property="customerPartNo" /></font></td>
       <%if(Constants.CLIENT_NAME_AIRGO.equalsIgnoreCase(ConfigManager.getClientNameAirgo() )){ %>
       <td width="10%" bgcolor="#DEE1E2"  nowrap>
                <font class="NArialL"><bean:write name="LineItem" property="labelNumber" /></font></td>
        <%}%>
       <td width="1%" bgcolor="#DEE1E2" class="NArialL" align=center>
                <bean:write name="LineItem" property="isTaxableAsString"/></td>
	   <td width="5%" bgcolor="#DEE1E2" align=right>
                <font class="NArialL"><bean:write name="LineItem" property="qtyAsString" /></font></td>
	   <td width="8%" bgcolor="#DEE1E2" align=right>
                <font class="NArialL"><bean:write name="LineItem" property="unitPriceAsString" /></font></td>
           <td width="8%" bgcolor="#DEE1E2" align=right>
                <font class="NArialL"><bean:write name="LineItem" property="amountAsString" /></font></td>
           <td width="8%" bgcolor="#DEE1E2">
                <font class="NArialL"><bean:write name="LineItem" property="requestDate" /></font></td>
           <td width="8%" bgcolor="#DEE1E2">
                <font class="NArialL"><bean:write name="LineItem" property="scheduleDate" /></font></td>
           <td width="20%" bgcolor="#DEE1E2">
                <table with="100%">
                <tr>
                    <td class="NArialL">
                        <html:select name="LineItem" property="marketingHold" styleClass="txfield" disabled="true">
                            <html:option value=""></html:option>
                            <html:option value="0">X</html:option>
                            <html:options collection="marketingReasonCodes" property="value" labelProperty="label"/>&nbsp;
                        </html:select>
                    </td>
                    <td class="NArialL">
                        <html:select name="LineItem" property="financeHold" styleClass="txfield" disabled="true">
                            <html:option value=""></html:option>
                            <html:option value="0">X</html:option>
                            <html:options collection="financeReasonCodes" property="value" labelProperty="label"/>&nbsp;
                        </html:select>
                    </td>
                    <td class="NArialL">
                        <html:select name="LineItem" property="operationsHold" styleClass="txfield" disabled="true">
                            <html:option value=""></html:option>
                            <html:option value="0">X</html:option>
                            <html:options collection="opsReasonCodes" property="value" labelProperty="label"/>&nbsp;
                        </html:select>
                    </td>
                    <td class="NArialL">
                        <html:select name="LineItem" property="salesHold" styleClass="txfield" disabled="true">
                            <html:option value=""></html:option>
                            <html:option value="0">X</html:option>
                            <html:options collection="salesReasonCodes" property="value" labelProperty="label"/>&nbsp;
                        </html:select>
                    </td>
                </tr>
            </table>
           </td>
         </tr>
         </logic:iterate>

<%-- Added by Prabhajan on 07 Mar 2004 to display subtotals--%>
        <tr>
            <%if(Constants.CLIENT_NAME_AIRGO.equalsIgnoreCase(ConfigManager.getClientNameAirgo() )){ %>
            <td colspan="6" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right">
                Sub Total
            </td>
            <%}else{%>
            <td colspan="5" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right">
                Sub Total
            </td>
            <%}%>
            <%-- Modified by Prabhanjan (3 Arp 2004) --%>
            <bean:define id="subTotal" name="lineItemList" property="value" type="com.scalar.chiptrack.sales.SubTotal"/>
            <td colspan="1" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right">
                <bean:write name="subTotal" property="subTotalQty" />
            </td>
            <td>&nbsp;</td>
            <td colspan="1" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right">
                <bean:write name="subTotal" property="subTotalAmt" />
            </td>
        </tr>
   </logic:iterate>
</logic:iterate>

        <tr><td colspan=10>&nbsp;</td></tr>
<%-- End of addition by Prabhanjan on 07 Mar 2004 --%>

        <%   int colSpan = 7;
             if(Constants.CLIENT_NAME_AIRGO.equalsIgnoreCase(ConfigManager.getClientNameAirgo() )){
                 colSpan = 8;
             }
         %>
         <tr>
            <%--<td colspan=5 class="NArialL" align="center"></td>--%>

        <nested:nest property="salesOrder">
            <td colspan=<%=colSpan%> class="NArialL" align="right">Sub Total</td>
            <td bgcolor="#DEE1E2" class="NArialL" align="right"><nested:write property="subTotalAsString" /></td>
        </tr>
        <tr>
            <td colspan=<%=colSpan%> align=right class="NArialL">Sales Tax</td>
            <td bgcolor='#DEE1E2' class="NArialL" align="right"><nested:write property="salesTaxAsString" /></td>
        </tr>
        <tr>
            <td colspan=<%=colSpan%> align=right class="NArialL">Freight</td>
            <td bgcolor='#DEE1E2' class="NArialL" align="right"><nested:write property="frieghtAsString" /></td>
        </tr>
        <tr>
            <td colspan=<%=colSpan%> align=right class="NArialL">
                    <nested:write name="salesOrderForm" property="miscName"/>
                </td>
            <td bgcolor='#DEE1E2' class="NArialL" align="right"><nested:write property="miscAsString" /></td>
        </tr>
        <tr>
            <td colspan=<%=colSpan%> align=right class="NArialL">Order Total</td>
            <td bgcolor='#DEE1E2' class="NArialL" align="right"><nested:write property="orderTotalAsString" /></td>
        </tr>
        </nested:nest>

        </table>
     </td>
     </tr>
     <tr><td colspan=<%=colSpan%>><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
     </logic:equal>

     <tr><td colspan=6 class="NArialL">
            <A href="javascript:history.back();" onmouseover="window.status='Click to go Back to Order Scheduling';return true" onmouseout="window.status='';return true">Back to Order Scheduling</A></td>
     </td></tr>

    </table>

</html:form>

</TD>
</TR>
</TABLE>


</html:html>
</td>
<!-- till here -->

<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>
<!-- Footer starts here -->

<%@ include file="/jsp/includes/footer.jsp" %>

<!-- footer end here -->

</BODY>
</HTML>
